import request from '@/request'
import ENV from '@/config/ENV.js'
// 文件上传url
export const UPLOAD_URL = ENV.apiBaseURL + '/v1/oss/upload'

// 省市区查询
export const apiGetCitys = (params) => request.get('/v1/citys/getAreaByParentCode', {
	params
})

// 单条省市区查询
export const apiGetOneCity = (params) => request.get('/v1/citys/getParentByAreaCode', {
	params
})

// 上传
export const apiUpload = (filePath) => request.post(UPLOAD_URL, {
	filePath
})


// 智能识别收货人信息
export const apiAddressGet = data => request.post('/v1/order/autoAddress', data)
